import { getRequest, postRequest } from "@/lib/axios";

// // 授信
// export const cardsCreditListApi = (param, type) => {
//   return getRequest("/payservice/cards/credit", param, type);
// };
// // 授信
// export const cardsCreditUpdateApi = (param) => {
//   return postRequest("/payservice/cards/credit", param);
// };
// 卡账户
export const cardsAccountsApi = (param, type) => {
  return postRequest("/payservice/cards/accounts", param, type);
};
// 卡账号流水
export const cardsAccountsRecordsApi = (param, type) => {
  return postRequest("/payservice/cards/accounts_records", param, type);
};
// 卡账户订单
export const cardsAssetRecordsApi = (param, type) => {
  return postRequest("/payservice/cards/asset_records", param, type);
};
// // 持卡人
// export const cardsHoldersApi = (param, type) => {
//   return postRequest("/payservice/cards/holders", param, type);
// };
// 卡片列表
export const cardsListApi = (param, type) => {
  return postRequest("/payservice/cards/list", param, type);
};
// 卡交易记录
export const cardsTransactionsApi = (param, type) => {
  return postRequest("/payservice/cards/transactions", param, type);
};
// 商户配置
export const cardsMerchantConfigApi = (param, type) => {
  return getRequest("/payservice/cards/mer_config", param, type);
};
// 商户配置更新
export const cardsMerchantConfigUpdateApi = (param) => {
  return postRequest("/payservice/cards/mer_config", param);
};
// 商户费用配置
export const cardsMerchantFeeConfigApi = (param, type) => {
  return getRequest("/payservice/cards/fee_config", param, type);
};
// 商户费用配置更新
export const cardsMerchantFeeConfigUpdateApi = (param) => {
  return postRequest("/payservice/cards/fee_config", param);
};
// 开卡币种
export const cardsCurrencyApi = (param, type) => {
  return getRequest("/payservice/cards/currency", param, type);
};
// 开卡币种更新
export const cardsCurrencyUpdateApi = (param) => {
  return postRequest("/payservice/cards/currency", param);
};
// 设置卡片号码
export const SetCardNumberApi = (param) => {
  return postRequest("/payservice/cards/set_card_number", param);
};
// 线下卡操作申请记录
export const cardsOfflineOperateApi = (param) => {
  return postRequest("/payservice/cards/operate", param);
};
// 线下卡申请审核
export const cardsOfflineOperateReviewApi = (param) => {
  return postRequest("/payservice/cards/operate_review", param);
};
// 卡产品列表
export const cardsProductApi = (param) => {
  return getRequest("/payservice/cards/product", param);
};

// 更新卡产品列表
export const cardsProductUpdateApi = (param) => {
  return postRequest("/payservice/cards/product", param);
};

//Halo接口
// 卡账户
export const HaloCardsAccountsApi = (param, type) => {
  return postRequest("/payservice/cards/halo/accounts", param, type);
};
// 卡账号流水
export const HaloCardsAccountsRecordsApi = (param, type) => {
  return postRequest("/payservice/cards/halo/accounts_records", param, type);
};
// 卡账户订单
export const HaloCardsAssetRecordsApi = (param, type) => {
  return postRequest("/payservice/cards/halo/asset_records", param, type);
};
// 卡片列表
export const HaloCardsListApi = (param, type) => {
  return postRequest("/payservice/cards/halo/list", param, type);
};
// 卡交易记录
export const HaloCardsTransactionsApi = (param, type) => {
  return postRequest("/payservice/cards/halo/transactions", param, type);
};
// 商户配置
export const HaloCardsMerchantConfigApi = (param, type) => {
  return getRequest("/payservice/cards/halo/mer_config", param, type);
};
// 商户配置更新
export const HaloCardsMerchantConfigUpdateApi = (param) => {
  return postRequest("/payservice/cards/halo/mer_config", param);
};
// 商户费用配置
export const HaloCardsMerchantFeeConfigApi = (param, type) => {
  return getRequest("/payservice/cards/halo/fee_config", param, type);
};
// 商户费用配置更新
export const HaloCardsMerchantFeeConfigUpdateApi = (param) => {
  return postRequest("/payservice/cards/halo/fee_config", param);
};
// 开卡币种
export const HaloCardsCurrencyApi = (param, type) => {
  return getRequest("/payservice/cards/halo/currency", param, type);
};
// 开卡币种更新
export const HaloCardsCurrencyUpdateApi = (param) => {
  return postRequest("/payservice/cards/halo/currency", param);
};
// 卡产品列表
export const HaloCardsProductApi = (param) => {
  return getRequest("/payservice/cards/halo/product", param);
};

// 更新卡产品列表
export const HaloCardsProductUpdateApi = (param) => {
  return postRequest("/payservice/cards/halo/product", param);
};